/* ============================================================
   11-filter.css
   Thematisch aufgeteilt aus default.css + SiTTsBlazor.css
   ============================================================ */

/* ---- aus default.css ---- */

.filter-option,
.col-title {
    display: flex;
    flex-direction: row;
    position: relative;
    justify-content: space-between;
    align-items: center;
}

#filterActionMenu .ticket-status-component {
    width: 100%;
}



.filter-page-v2 .mud-input {
    border-radius: .25rem;
    color: #4B5675;
    background-color: #fff;
/*    border: 1px solid #ccc !important;*/
}

    .filter-page-v2 .mud-input.mud-input-filled.mud-input-underline::after {
        border-bottom: 0px !important;
    }

    .filter-page-v2 .mud-input.mud-input-filled {
        background-color: rgba(0,0,0,0) !important;
    }

.filter-page-v2 .mud-input-slot {
    padding: .26rem .5rem !important;
}

.filter-page-v2 .mud-input-adornment-icon-button {
    padding: 4px !important;
}
.filter-page-v2 .mud-icon-button {
/*    padding: 10px !important;*/
    line-height: 1rem !important;
}
.filter-page-v2 .mud-icon-size-medium {
    font-size: 1rem !important;
}
.filter-page-v2 .mud-input-label {
    display: none !important;
}
.filter-page-v2 .mud-breadcrumbs.mud-typography-body1{
    padding:0 !important;
}
.filter-page-v2 .mud-toolbar{
    height:unset !important;
  
}
.filter-page-v2 .mud-toolbar .mud-button-root.mud-button.mud-button-filled {
/*    margin: 5px .375rem 5px 0;
    margin-right: 0.375rem;*/
    padding: .26rem .5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0.25rem;
}
.filter-page-v2 .mud-button {
    text-transform: none !important;
}
.filter-page-v2 .mud-input.mud-input-outlined:focus-within > .mud-input-outlined-border,
.filter-page-v2 .mud-input.mud-input-outlined:focus-within .mud-shrink > .mud-input-outlined-border {
    border-color: var(--mud-palette-lines-inputs);
    border-width: 1px;
}
.filter-page-v2 .mud-button {
    font-size: .75rem !important;
}
.filter-page-v2 :not(.mud-input-numeric-spin) > .mud-button:disabled {
    background-color: rgb(125, 117, 113) !important;
    color: #fff !important;
}
.filter-page-v2 .mud-button-filled {
    box-shadow: none !important;
}
.filter-page-v2 .mud-button-filled-primary:hover {
    background-color: #0056b3 !important;
}
.filter-page-v2 .mud-button-filled:hover {
    box-shadow: none !important;
}


/* Sidebar Trigger */
.side-filter-trigger {
    height: 42px;
    margin: 8px 14px;
    padding: 0 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5f5;
    cursor: pointer;
    transition: 0.2s ease;
}

    .side-filter-trigger:hover,
    .side-filter-trigger.active {
        background: rgba(255,255,255,0.05);
        color: #fff;
    }

.side-filter-icon {
    font-size: 17px;
    opacity: .9;
}

.side-filter-arrow {
    margin-left: auto;
    font-size: 22px;
    opacity: .7;
}


/* Slide Panel */
.filter-panel {
    position: fixed;
    top: 60px;
    left: 240px;
    width: 330px;
    height: calc(100vh - 60px);
    background: linear-gradient(180deg, #474341 0%, #0f0e0e 100%);
    border-left: 1px solid rgba(255,255,255,0.08);
    border-right: 1px solid rgba(255,255,255,0.10);
    box-shadow: 18px 0 45px rgba(0,0,0,0.28);
    z-index: 100;
    transform: translateX(-24px);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
    display: flex;
    flex-direction: column;
}

    .filter-panel.open {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }


/* Header */
.filter-panel-header {
    padding: 20px 18px 14px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

    .filter-panel-header h3 {
        margin: 0;
        color: #fff;
        font-size: 18px;
    }

    .filter-panel-header span {
        display: block;
        margin-top: 4px;
        color: #fff;
        font-size: 12px;
    }

.filter-close {
    border: none;
    background: rgba(255,255,255,0.08);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
}

    .filter-close:hover {
        background: rgba(255,255,255,0.16);
        color: #fff;
    }


/* Search */
.filter-search {
    margin: 0 16px 14px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
}

    .filter-search input {
        width: 100%;
        border: none;
        outline: none;
        background: transparent;
        color: #fff;
        font-size: 13px;
    }

        .filter-search input::placeholder {
            color: #fff;
        }


/* Tabs */
.filter-tabs {
    margin: 0 16px 14px;
    padding: 4px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: rgba(255,255,255,0.06);
    border-radius: 14px;
}

    .filter-tabs .filter-btn {
        border: none;
        background: transparent;
        color: #fff;
        border-radius: 10px;
        padding: 9px 6px;
        font-size: 12px;
        cursor: pointer;
        transition: 0.2s ease;
        text-align: center;
    }

        .filter-tabs .filter-btn.active {
            background: rgba(255,255,255,0.05);
            color: #fff;
        }


/* List */
.filter-list {
    padding: 0 12px;
    overflow-y: auto;
    flex: 1;
}

.filter-item {
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 14px;
    background: rgba(255,255,255,0.045);
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: 0.2s ease;
    box-sizing: border-box;
}

    .filter-item:hover {
        background: rgba(255,255,255,0.09);
        border-color: rgba(255,255,2555,0.05);
        transform: translateX(3px);
    }

    .filter-item.selected {
        background: linear-gradient(90deg, rgba(24,174,234,0.22), rgba(255,255,255,0.05));
        border-color: rgba(255,255,255,0.05);
    }

    .filter-item strong {
        display: block;
        color: #fff;
        font-size: 13px;
        margin-bottom: 3px;
    }

    .filter-item span {
        color: #fff;
        font-size: 11px;
    }

    .filter-item .filter-btn {
        border: none;
        background: transparent;
        color: #fff;
        font-size: 17px;
        cursor: pointer;
    }


/* Footer */
.filter-panel-footer {
    padding: 14px 16px 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

    .filter-panel-footer .foo-btn {
        width: 100%;
        height: 42px;
        border: none;
        border-radius: 14px;
        background: rgba(255,255,255,0.05);
        color: #fff;
        font-weight: 600;
        cursor: pointer;
        line-height: 42px;
        padding-left: 10px;
        box-sizing: border-box;
    }

        .filter-panel-footer .foo-btn:hover {
            filter: brightness(1.08);
        }

.filter-item-txt {
    width: 100%;
    display: block;
}

.filter-empty {
    padding: 14px;
    opacity: .65;
    font-size: 13px;
    text-align: center;
    color: #fff;
}

/* ---- aus SiTTsBlazor.css ---- */

#filterActionMenu .dropdown-list{
    max-width:100%;
}
.filter-action-window {
    position:relative !important;
    top:unset !important;
    left:unset !important;
    transform:translate(0,0) !important;
    border:0 !important;
    background-color:rgba(0,0,0,0) !important;
    width:0 !important;
    height:60 !important;
}
.filter-option-search {
position:relative;
}
    .filter-option-search i,
    .filter-option-search .cb-archiv {
        position: absolute;
        right: 0;
        top: 50%;
        height: 20px !important;
        line-height: 20px;
        width: 20px !important;
        color: red;
        opacity: 0;
        transition: opacity 0.2s ease;
        text-align: center;

        transform: translate(0%,-50%);
    }
    .filter-option-search .cb-search-icon {
    right:25px !important;
    }
    .filter-action-window .searchbar {
        border-radius: .25rem;
        transition: background-color 0.3s ease;
        color: #4B5675;
        background-color: #fff;
        border: 1px solid rgba(0,0,0,.125);
        opacity: 0;
        transition: all 0.5s ease;
    }
.filter-option-search .cb-search-icon.True {
    color: rgb(18,194,194) !important;
}
.filter-option-search .cb-search-icon.False {
    color: rgb(255,165,5) !important;
}
filter-panel {
    position: fixed;
    top: var(--topbar-height);
    left: var(--sidebar-width);
    bottom: 0;
    width: 330px;
    z-index: 50;
    background: linear-gradient(180deg, #242322 0%, #111111 100%);
    color: #e8e8e8;
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 18px 0 40px rgba(0, 0, 0, 0.45);
}

/* Sidebar muss höher liegen */
.sidebar,
.side-menu,
.main-sidebar {
    z-index: 100;
    position: relative;
}

.filter-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 22px 22px 16px 22px;
}

    .filter-panel-header h3 {
        margin: 0;
        font-size: 24px;
        font-weight: 600;
        color: #ffffff;
    }

    .filter-panel-header span {
        display: block;
        margin-top: 6px;
        font-size: 13px;
        color: #9ca3af;
    }

.filter-close {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #9ca3af;
    font-size: 20px;
    line-height: 1;
    transition: background-color 0.15s ease, color 0.15s ease;
}

    .filter-close:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff;
    }

.filter-search {
    margin: 0 22px 16px 22px;
    height: 38px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #181818;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 0 12px;
}

    .filter-search span {
        color: #8f98a8;
        font-size: 14px;
    }

    .filter-search input {
        flex: 1;
        min-width: 0;
        background: transparent;
        border: none;
        outline: none;
        color: #ffffff;
        font-size: 14px;
    }

        .filter-search input::placeholder {
            color: #777f8e;
        }
/*
.filter-tabs {
    display: flex;
    gap: 8px;
    padding: 0 22px 18px 22px;
}*/

.filter-btn {
    padding: 7px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: #aeb6c5;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

    .filter-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }

    .filter-btn.active {
        background: #0b74c9;
        color: #ffffff;
    }

.filter-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 14px 16px 14px;
}

.filter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 8px 11px 12px;
    border-radius: 7px;
    color: #e5e7eb;
    cursor: default;
    transition: background-color 0.15s ease;
}

    .filter-item:hover {
        background: rgba(255, 255, 255, 0.07);
    }

    .filter-item.selected {
        background: rgba(11, 116, 201, 0.22);
    }

.filter-item-txt {
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

/*Ergänzug bzgl. Herz */
.filter-favorite-icon {
    cursor: default;
    pointer-events: none;
}


.filter-item strong {
    display: block;
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filter-item i {
    color: #8791a3;
    font-size: 15px;
    padding: 7px;
    border-radius: 5px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

    .filter-item i:hover {
        background: rgba(239, 68, 68, 0.14);
        color: #ef4444;
    }

.filter-empty {
    padding: 18px 12px;
    color: #8f98a8;
    font-size: 14px;
}

.filter-panel-footer {
    padding: 16px 22px 22px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.filter-btn.active {
    background: #2f2f2f;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.foo-btn {
    height: 38px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2b2b2b;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

    .foo-btn:hover {
        background: #373737;
        border-color: rgba(255, 255, 255, 0.2);
    }
/*Anpassunng filter */
.filter-panel .filter-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0 22px 18px;
    padding: 0;
    background: transparent;
    border: none;
    box-sizing: border-box;
}

    .filter-panel .filter-tabs > .filter-btn {
        width: 100%;
        min-width: 0;
        height: 38px;
        margin: 0;
        padding: 0 8px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: #2b2b2b;
        color: #ffffff;
        font-size: 12px;
        font-weight: 500;
        cursor: pointer;
        transition: background-color 0.15s ease, border-color 0.15s ease;
    }

        .filter-panel .filter-tabs > .filter-btn:hover {
            background: #373737;
            border-color: rgba(255, 255, 255, 0.2);
        }

        .filter-panel .filter-tabs > .filter-btn.active {
            background: #009EE0;
            border-color: #009EE0;
            color: #ffffff;
        }

/*Anpassung Zurücksetzen/Speichern button */
.filter-page-v2 .fp-action-btn {
    height: 28px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    color: #ffffff;
    font-family: Calibri, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

    .filter-page-v2 .fp-action-btn i {
        margin: 0;
        font-size: 13px;
    }

.filter-page-v2 .fp-action-btn-secondary {
    background-color: #59636a;
    border-color: #646e75;
}

    .filter-page-v2 .fp-action-btn-secondary:hover:not(:disabled) {
        background-color: #68737b !important;
        border-color: #768189 !important;
    }

.filter-page-v2 .fp-action-btn-primary {
    background-color: rgb(28, 48, 115);
    border-color: rgb(28, 48, 115);
}

    .filter-page-v2 .fp-action-btn-primary:hover:not(:disabled) {
        background-color: #009ee0 !important;
        border-color: #009ee0 !important;
    }

.filter-page-v2 .fp-action-btn:disabled {
    background-color: #4b4f52 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.45) !important;
    cursor: default;
    opacity: 1;
}

/*// Buttons filter Einstellungen*/
.filter-page-v2 .fp-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.filter-page-v2 .fp-toolbar-left,
.filter-page-v2 .fp-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Gemeinsamer Button-Stil */
.filter-page-v2 .fp-action-btn,
.filter-page-v2 .fp-visibility-dropdown {
    height: 28px;
    min-height: 28px;
    padding: 0 10px;
    margin: 0;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    color: #ffffff;
    font-family: Calibri, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

    .filter-page-v2 .fp-action-btn i {
        margin: 0;
        font-size: 13px;
        line-height: 1;
    }

/* Button */
.filter-page-v2 .fp-action-btn-primary {
    background-color: rgb(28, 48, 115);
    border-color: rgb(28, 48, 115);
}

    .filter-page-v2 .fp-action-btn-primary:hover:not(:disabled) {
        background-color: #009ee0 !important;
        border-color: #009ee0 !important;
    }

/* Grauer Button: Zurücksetzen */
.filter-page-v2 .fp-action-btn-secondary {
    background-color: #59636a;
    border-color: #646e75;
}

    .filter-page-v2 .fp-action-btn-secondary:hover:not(:disabled) {
        background-color: #68737b !important;
        border-color: #768189 !important;
    }

/* Favoriten Button */
.filter-page-v2 .fp-action-btn-toggle {
    background-color: #59636a;
    border-color: #646e75;
    color: #ffffff;
}

    .filter-page-v2 .fp-action-btn-toggle:hover:not(:disabled) {
        background-color: #68737b !important;
        border-color: #768189 !important;
    }

    /* Team-Button */
    .filter-page-v2 .fp-action-btn-toggle.active {
        background-color: rgb(28, 48, 115);
        border-color: rgb(28, 48, 115);
        color: #ffffff;
    }

        .filter-page-v2 .fp-action-btn-toggle.active:hover {
            background-color: #009ee0 !important;
            border-color: #009ee0 !important;
        }

/* Deaktiviert */
.filter-page-v2 .fp-action-btn:disabled {
    background-color: #4b4f52 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.45) !important;
    cursor: default;
    opacity: 1;
}

.filter-page-v2 .fp-toolbar-left .fp-textfield {
    width: clamp(140px, 16vw, 220px);
    height: 30px;
    padding: 0 10px;
}
/*Team Dropdown Styling */
.fp-team-dropdown {
    position: relative;
    width: 230px;
    height: 31px;
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: 1px solid #ccc;
    border-radius: .25rem;
    background-color: #fff;
    color: #4B5675;
    box-sizing: border-box;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}

    .fp-team-dropdown:hover {
        background-color: #fff;
        border-color: #aeb4bd;
    }

    /* Fokus / geöffnet */
    .fp-team-dropdown:focus-within {
        background-color: #fff;
        border-color: #009ee0;
        box-shadow: 0 0 0 2px rgba(0, 158, 224, .12);
    }

    /* Benutzer-Icon */
    .fp-team-dropdown > i {
        position: absolute;
        left: 9px;
        top: 50%;
        transform: translateY(-50%);
        width: 14px;
        color: #4B5675;
        font-size: .8rem;
        pointer-events: none;
        z-index: 2;
    }

    /* Native Auswahl */
    .fp-team-dropdown select {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0 30px 0 30px;
        border: none;
        border-radius: .25rem;
        outline: none;
        background-color: transparent;
        color: #4B5675;
        font-family: Calibri, sans-serif;
        font-size: .75rem;
        font-weight: 400;
        cursor: pointer;
        box-sizing: border-box;
    }

    /* Eigener Pfeil rechts */
    .fp-team-dropdown::after {
        content: "\f078";
        position: absolute;
        right: 9px;
        top: 50%;
        transform: translateY(-50%);
        color: #8c9097;
        font-family: "Font Awesome 6 Pro";
        font-size: .65rem;
        font-weight: 300;
        pointer-events: none;
    }

    /* Native Einträge */
    .fp-team-dropdown select option {
        background-color: #fff;
        color: #212529;
        font-family: Calibri, sans-serif;
        font-size: .75rem;
        font-weight: 400;
    }

        /* Browserabhängig */
        .fp-team-dropdown select option:checked {
            background-color: #d0cfcf;
            color: #212529;
        }
/*Rollen Dropdown Style */

.filter-page-v2 .fp-role-dropdown {
    position: relative;
    width: 230px;
    height: 31px;
    flex: 0 0 230px;
    font-family: Calibri, sans-serif;
}

/* Geschlossener Bereich */
.filter-page-v2 .fp-role-dropdown-trigger {
    position: relative;
    z-index: 22;
    width: 100%;
    height: 31px;
    margin: 0;
    padding: 0 30px 0 30px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    border: 1px solid #cccccc;
    border-radius: 4px;
    outline: none;
    background-color: #ffffff;
    color: #4b5675;
    font-family: Calibri, sans-serif;
    font-size: 12px;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

    .filter-page-v2
    .fp-role-dropdown-trigger:hover {
        background-color: #ffffff !important;
        border-color: #aeb4bd;
    }

    .filter-page-v2
    .fp-role-dropdown-trigger:focus-visible,
    .filter-page-v2
    .fp-role-dropdown-trigger.open {
        background-color: #ffffff !important;
        border-color: #009ee0;
        box-shadow: 0 0 0 2px rgba(0, 158, 224, 0.12);
    }

/* Linkes Icon */
.filter-page-v2 .fp-role-dropdown-icon {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    margin: 0;
    color: #4b5675;
    font-size: 13px;
    pointer-events: none;
}

/*  Rollenname */
.filter-page-v2 .fp-role-dropdown-value {
    display: block;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Pfeil */
.filter-page-v2 .fp-role-dropdown-arrow {
    position: absolute;
    right: 9px;
    top: 50%;
    margin: 0;
    color: #8c9097;
    font-size: 10px;
    transform: translateY(-50%);
    transition: transform 0.15s ease;
    pointer-events: none;
}

.filter-page-v2
.fp-role-dropdown-trigger.open
.fp-role-dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* Klickfläche    */
.filter-page-v2 .fp-role-dropdown-backdrop {
    position: fixed;
    inset: 0;
    z-index: 20;
    background: transparent;
}

/* Ausgeklappte Liste */
.filter-page-v2 .fp-role-dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    z-index: 23;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    max-height: 280px;
    padding: 5px;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    background-color: #ffffff;
    border: 1px solid #d8dce1;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(24, 33, 45, 0.14), 0 2px 6px rgba(24, 33, 45, 0.08);
}

/* Einzelner Eintrag */
.filter-page-v2 .fp-role-dropdown-item {
    position: relative;
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 6px 32px 6px 8px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 9px;
    border: none;
    border-radius: 4px;
    background-color: transparent;
    color: #2c2c2c;
    font-family: Calibri, sans-serif;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.12s ease, color 0.12s ease;
}

    .filter-page-v2
    .fp-role-dropdown-item:hover {
        background-color: #f2f4f6 !important;
    }

    .filter-page-v2
    .fp-role-dropdown-item.selected {
        background-color: rgba(0, 158, 224, 0.1);
        color: #1c3073;
    }

        .filter-page-v2
        .fp-role-dropdown-item.selected:hover {
            background-color: rgba(0, 158, 224, 0.15) !important;
        }

/* Iconfläche */
.filter-page-v2 .fp-role-option-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f3f5;
    border-radius: 4px;
    color: #59636a;
    font-size: 12px;
}

.filter-page-v2
.fp-role-dropdown-item.selected
.fp-role-option-icon {
    background-color: rgba(0, 158, 224, 0.13);
    color: #009ee0;
}

/* Textinhalt */
.filter-page-v2 .fp-role-option-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

    .filter-page-v2 .fp-role-option-content strong {
        overflow: hidden;
        color: inherit;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.2;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .filter-page-v2 .fp-role-option-content small {
        overflow: hidden;
        color: #8c9097;
        font-size: 10px;
        font-weight: 400;
        line-height: 1.2;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

/* Haken */
.filter-page-v2 .fp-role-option-check {
    position: absolute;
    right: 10px;
    top: 50%;
    margin: 0;
    color: #009ee0;
    font-size: 12px;
    transform: translateY(-50%);
}

/* Abschnittsüberschrift */
.filter-page-v2 .fp-role-dropdown-separator {
    margin: 4px 4px 3px;
    padding: 6px 5px 4px;
    border-top: 1px solid #eceff2;
    color: #8c9097;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* Scrollbar */
.filter-page-v2
.fp-role-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.filter-page-v2
.fp-role-dropdown-menu::-webkit-scrollbar-thumb {
    background-color: #c6cbd1;
    border-radius: 8px;
}

.filter-page-v2
.fp-role-dropdown-menu::-webkit-scrollbar-track {
    background-color: transparent;
}
.filter-page-v2 {
    --fp-primary: #3a4a5c;
    --fp-primary-hover: #2e3b49;
    --fp-error: #d32f2f;
    --fp-border: #e0e0e0;
    --fp-bg-card: #ffffff;
    --fp-text: #2c2c2c;
    --fp-text-muted: #9e9e9e;
    --fp-dot-inactive: #c4c4c4;
    --fp-dot-active: #3a4a5c;
    --fp-radius: 8px;
    --fp-gap: 16px;
    display: flex;
    flex-direction: column;
    gap: var(--fp-gap);
    height: 100%;
    color: var(--fp-text);
    font-size: 0.95rem;
}

/* ---------- Paper / Karten-Grundgerüst ---------- */
.fp-paper {
    background: var(--fp-bg-card);
    border: 1px solid var(--fp-border);
    border-radius: var(--fp-radius);
}

/* ---------- Toolbar ---------- */
.fp-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    gap: 8px;
}

.fp-toolbar-left,
.fp-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-right: 5px;
    white-space: nowrap;
}

/* ---------- Buttons ---------- */
.fp-btn {
    border: none;
    border-radius: 4px;
    padding: 7px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease;
    white-space: nowrap;
}

.fp-btn-primary {
    background: var(--fp-primary);
    color: #fff;
}

    .fp-btn-primary:hover:not(:disabled) {
        background: var(--fp-primary-hover);
    }

.fp-btn-error {
    background: var(--fp-error);
    color: #fff;
}

    .fp-btn-error:hover:not(:disabled) {
        filter: brightness(0.92);
    }

.fp-btn-text {
    background: transparent;
    color: var(--fp-text);
}

    .fp-btn-text:hover:not(:disabled) {
        background: rgba(0, 0, 0, 0.05);
    }

.fp-btn:disabled {
    opacity: 0.45;
    cursor: default;
}

/* ---------- Icon-Buttons ---------- */
.fp-icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--fp-text);
    transition: background-color 0.15s ease;
    font-size: 0.9rem;
}

    .fp-icon-btn:hover:not(:disabled) {
        background: rgba(0, 0, 0, 0.06);
    }

    .fp-icon-btn:disabled {
        opacity: 0.35;
        cursor: default;
    }

.fp-icon-btn-error {
    color: var(--fp-error);
}

/* ---------- Textfelder ---------- */
.fp-textfield {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    border: 1px solid var(--fp-border);
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--fp-text);
    background: #fff;
    outline: none;
    transition: border-color 0.15s ease;
}

    .fp-textfield:focus {
        border-color: var(--fp-primary);
    }

    .fp-textfield:disabled {
        background: #f5f5f5;
        color: var(--fp-text-muted);
        cursor: default;
    }

.fp-toolbar-left .fp-textfield {
    width: 300px;
}

/* ---------- Body Layout ---------- */
.fp-body {
    display: flex;
    gap: var(--fp-gap);
    flex: 1;
    min-height: 0;
}

/* ---------- Liste links ---------- */
.fp-list-panel {
    width: 18%;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.fp-list-subheader {
    padding: 14px 16px 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--fp-text-muted);
    text-transform: none;
}

.fp-list {
    flex: 1;
    overflow-y: auto;
    padding: 4px 0;
}

.fp-list-item {
    display: flex;
    align-items: center;
    padding: 8px 12px 8px 16px;
    cursor: pointer;
    transition: background-color 0.12s ease;
    border-left: 3px solid transparent;
}

    .fp-list-item:hover {
        background: rgba(0, 0, 0, 0.03);
    }

.fp-list-item-selected {
    background: rgba(58, 74, 92, 0.08);
    border-left-color: var(--fp-primary);
}

.fp-list-item-text {
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fp-spacer {
    flex: 1;
}

/* ---------- Felder-Grid rechts ---------- */
.fp-fields-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--fp-gap);
    align-content: start;
    overflow-y: auto;
}

@@media (max-width: 1400px) {
    .fp-fields-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@@media (max-width: 1000px) {
    .fp-fields-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@@media (max-width: 640px) {
    .fp-fields-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Einzelne Filter-Karte ---------- */
.fp-card {
    background: var(--fp-bg-card);
    border: 1px solid var(--fp-border);
    border-radius: var(--fp-radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 130px;
}

.fp-card-disabled {
    opacity: 0.6;
}

.fp-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fp-card-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.fp-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--fp-dot-inactive);
    flex-shrink: 0;
}

.fp-dot-active {
    background: var(--fp-dot-active);
}

.fp-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ---------- Toggle / Switch ---------- */
.fp-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
    cursor: pointer;
}

    .fp-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.fp-switch-slider {
    position: absolute;
    inset: 0;
    background: #cccccc;
    border-radius: 24px;
    transition: background-color 0.2s ease;
}

    .fp-switch-slider::before {
        content: "";
        position: absolute;
        height: 18px;
        width: 18px;
        left: 3px;
        top: 3px;
        background: #fff;
        border-radius: 50%;
        transition: transform 0.2s ease;
    }

.fp-switch input:checked + .fp-switch-slider {
    background: var(--fp-primary);
}

    .fp-switch input:checked + .fp-switch-slider::before {
        transform: translateX(22px);
    }

.fp-switch input:disabled + .fp-switch-slider {
    opacity: 0.5;
    cursor: default;
}

/* ---------- Chips  ---------- */
.fp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fp-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(58, 74, 92, 0.1);
    color: var(--fp-primary);
    border-radius: 16px;
    padding: 4px 10px;
    font-size: 0.82rem;
    line-height: 1.2;
}

.fp-chip-remove {
    cursor: pointer;
    font-size: 0.8rem;
    opacity: 0.7;
    transition: opacity 0.12s ease;
}

    .fp-chip-remove:hover {
        opacity: 1;
    }

/* ---------- Beschreibung Add-Row ---------- */
.fp-add-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fp-add-input {
    flex: 1;
}

.fp-add-btn {
    border: 1px solid var(--fp-border);
    border-radius: 4px;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

/* ---------- DateRange ---------- */
.fp-daterange {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fp-daterange-sep {
    color: var(--fp-text-muted);
}

/* ---------- Modal ---------- */
.fp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.fp-modal {
    background: #fff;
    border-radius: var(--fp-radius);
    padding: 24px;
    width: 420px;
    max-width: 90vw;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fp-modal-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.fp-modal-text {
    font-size: 0.95rem;
    color: var(--fp-text);
}

.fp-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}



/*   Zusatz bzgl. Favoriten    */

.fp-marker-btn {
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid var(--fp-border);
    border-radius: 5px;
    background: #ffffff;
    color: var(--fp-text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

    .fp-marker-btn:hover {
        background: rgba(58, 74, 92, 0.06);
        border-color: var(--fp-primary);
    }

.fp-marker-btn-active {
    color: #ffffff;
    background: var(--fp-primary);
    border-color: var(--fp-primary);
}

    .fp-marker-btn-active:hover {
        background: var(--fp-primary-hover);
    }

.fp-marker-btn i {
    font-size: 0.95rem;
}
